/**   
 * 项目名：五位一体化工安全信息平台
 * 日期：    2019-11-24 23:34:52  
 * Copyright (c) 2015- joysuch-版权所有     
 */
package com.joysuch.wwyt.bp.service;

import com.joysuch.wwyt.bp.entity.BpWorkType;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface BpWorkTypeService {

    public void add(BpWorkType entity) throws Exception;

    void update(BpWorkType entity) throws Exception;

    Page<BpWorkType> findByPage(Pageable page);
    
    void delete(Long id);

    BpWorkType findById(Long id);

   List<BpWorkType> findAllByTenentId(Long tenentId);
}
